package com.uton.rfidcontroller.viewmodel.activity_model;

import android.databinding.ObservableField;

import com.uton.rfidcontroller.viewmodel.base.BaseViewModel;

import io.reactivex.ObservableTransformer;

/**
 * Created by 王家宝 on 2017/10/16.
 * Email:639586819@qq.com
 * Tel:18241150668
 */

public abstract class FinalWriteActivityViewModel extends BaseViewModel {

    public final ObservableField<String> cardId = new ObservableField<>("");
    public final ObservableField<String> oriCardId = new ObservableField<>("");
    public final ObservableField<String> writeInState = new ObservableField<>("等待写入");
    public final ObservableField<String> tidState = new ObservableField<>("等待读取TID");

    public FinalWriteActivityViewModel(String toWriteInId) {
        oriCardId.set(toWriteInId);
    }

    @Override
    public void refreshData() {

    }

    @Override
    public ObservableTransformer setObservable() {
        return null;
    }

    public abstract void writeIn();
    public abstract void readTid();
}
